<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>File Source for Manipuliation.php</title>
	<link rel="stylesheet" type="text/css" href="../media/style.css">
	<meta http-equiv='Content-Type' content='text/html; charset=utf-8'/>
</head>
<body>

<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%">
  <tr>
	<td class="header-top-left"><img src="../media/logo.png" border="0" alt="phpDocumentor " /></td>
    <td class="header-top-right">Smithy<br /><div class="header-top-right-subpackage"></div></td>
  </tr>
  <tr><td colspan="2" class="header-line"><img src="../media/empty.png" width="1" height="1" border="0" alt=""  /></td></tr>
  <tr>
    <td colspan="2" class="header-menu">
      
                        
                                                                		[ <a href="../classtrees_Smithy.html" class="menu">class tree: Smithy</a> ]
		[ <a href="../elementindex_Smithy.html" class="menu">index: Smithy</a> ]
            [ <a href="../elementindex.html" class="menu">all elements</a> ]
    </td>
  </tr>
  <tr><td colspan="2" class="header-line"><img src="../media/empty.png" width="1" height="1" border="0" alt=""  /></td></tr>
</table>

<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="195" class="menu">
		<div class="package-title">Smithy</div>
      <b>Packages:</b><br />
  <div class="package">
              <a href="../li_Smithy.html">Smithy</a><br />
              <a href="../li_default.html">default</a><br />
              <a href="../li_Smithy_Form.html">Smithy_Form</a><br />
              <a href="../li_Smithy_Plugin.html">Smithy_Plugin</a><br />
      	</div>
      <br />
                        <br />
                      </td>
    <td>
      <table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top">

<h1 align="center">Source for file Manipuliation.php</h1>
<p>Documentation is available at <a href="../Smithy/_Url---Manipuliation.php.html">Manipuliation.php</a></p>
<div class="src-code"><span class="php">
<ol><li><div class="src-line"><a name="a1"></a><span class="src-php">&lt;?php</span></div></li>
<li><div class="src-line"><a name="a2"></a><span class="src-key">class&nbsp;</span><a href="../Smithy/Smithy_Url_Manipuliation.html">Smithy_Url_Manipuliation</a></div></li>
<li><div class="src-line"><a name="a3"></a><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a4"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-doc">/**</span></div></li>
<li><div class="src-line"><a name="a6"></a><span class="src-doc">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;Creates&nbsp;an&nbsp;URL&nbsp;string&nbsp;from&nbsp;the&nbsp;given&nbsp;string.</span></div></li>
<li><div class="src-line"><a name="a7"></a><span class="src-doc">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*</span></div></li>
<li><div class="src-line"><a name="a8"></a><span class="src-doc">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;</span><span class="src-doc-coretag">@param&nbsp;</span><span class="src-doc-type">string&nbsp;</span><span class="src-doc-var">$string&nbsp;</span></div></li>
<li><div class="src-line"><a name="a9"></a><span class="src-doc">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;</span><span class="src-doc-coretag">@return&nbsp;</span><span class="src-doc-type">string&nbsp;</span></div></li>
<li><div class="src-line"><a name="a10"></a><span class="src-doc">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span></div></li>
<li><div class="src-line"><a name="a11"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">public&nbsp;</span><span class="src-key">static&nbsp;</span><span class="src-key">function&nbsp;</span><a href="../Smithy/Smithy_Url_Manipuliation.html#methodcreateUrlString">createUrlString</a><span class="src-sym">(</span><span class="src-var">$string</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a12"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a13"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$mit&nbsp;</span>=&nbsp;<span class="src-key">array&nbsp;</span><span class="src-sym">(</span><span class="src-str">'é'</span><span class="src-sym">,&nbsp;</span><span class="src-str">'á'</span><span class="src-sym">,&nbsp;</span><span class="src-str">'ű'</span><span class="src-sym">,&nbsp;</span><span class="src-str">'ú'</span><span class="src-sym">,&nbsp;</span><span class="src-str">'ő'</span><span class="src-sym">,&nbsp;</span><span class="src-str">'í'</span><span class="src-sym">,&nbsp;</span><span class="src-str">'ó'</span><span class="src-sym">,&nbsp;</span><span class="src-str">'ü'</span><span class="src-sym">,&nbsp;</span><span class="src-str">'ö'</span><span class="src-sym">,&nbsp;</span><span class="src-str">'&nbsp;'</span><span class="src-sym">,&nbsp;</span><span class="src-str">&quot;\t&quot;</span><span class="src-sym">,&nbsp;</span><span class="src-str">&quot;\n&quot;</span><span class="src-sym">,&nbsp;</span><span class="src-str">'É'</span><span class="src-sym">,&nbsp;</span><span class="src-str">'Á'</span><span class="src-sym">,&nbsp;</span><span class="src-str">'Ű'</span><span class="src-sym">,&nbsp;</span><span class="src-str">'Ú'</span><span class="src-sym">,&nbsp;</span><span class="src-str">'Ő'</span><span class="src-sym">,&nbsp;</span><span class="src-str">'Í'</span><span class="src-sym">,&nbsp;</span><span class="src-str">'Ó'</span><span class="src-sym">,&nbsp;</span><span class="src-str">'Ü'</span><span class="src-sym">,&nbsp;</span><span class="src-str">'Ö'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a14"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$mire&nbsp;</span>=&nbsp;<span class="src-key">array&nbsp;</span><span class="src-sym">(</span><span class="src-str">'e'</span><span class="src-sym">,&nbsp;</span><span class="src-str">'a'</span><span class="src-sym">,&nbsp;</span><span class="src-str">'u'</span><span class="src-sym">,&nbsp;</span><span class="src-str">'u'</span><span class="src-sym">,&nbsp;</span><span class="src-str">'o'</span><span class="src-sym">,&nbsp;</span><span class="src-str">'i'</span><span class="src-sym">,&nbsp;</span><span class="src-str">'o'</span><span class="src-sym">,&nbsp;</span><span class="src-str">'u'</span><span class="src-sym">,&nbsp;</span><span class="src-str">'o'</span><span class="src-sym">,&nbsp;</span><span class="src-str">'-'</span><span class="src-sym">,&nbsp;</span><span class="src-str">&quot;-&quot;</span><span class="src-sym">,&nbsp;</span><span class="src-str">&quot;-&quot;</span><span class="src-sym">,&nbsp;</span><span class="src-str">'E'</span><span class="src-sym">,&nbsp;</span><span class="src-str">'A'</span><span class="src-sym">,&nbsp;</span><span class="src-str">'U'</span><span class="src-sym">,&nbsp;</span><span class="src-str">'U'</span><span class="src-sym">,&nbsp;</span><span class="src-str">'O'</span><span class="src-sym">,&nbsp;</span><span class="src-str">'I'</span><span class="src-sym">,&nbsp;</span><span class="src-str">'O'</span><span class="src-sym">,&nbsp;</span><span class="src-str">'U'</span><span class="src-sym">,&nbsp;</span><span class="src-str">'O'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a15"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$string&nbsp;</span>=&nbsp;<a href="http://www.php.net/str_replace">str_replace</a><span class="src-sym">(</span><span class="src-var">$mit</span><span class="src-sym">,&nbsp;</span><span class="src-var">$mire</span><span class="src-sym">,&nbsp;</span><span class="src-var">$string</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a16"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$string&nbsp;</span>=&nbsp;<a href="http://www.php.net/preg_replace">preg_replace</a><span class="src-sym">(</span><span class="src-str">&quot;%[^a-zA-Z0-9-]%&quot;</span><span class="src-sym">,&nbsp;</span><span class="src-str">&quot;&quot;</span><span class="src-sym">,&nbsp;</span><span class="src-var">$string</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a17"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-var">$string</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a18"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a19"></a><span class="src-sym">}</span></div></li>
</ol>
</span></div>
        <div class="credit">
		    <hr class="separator" />
		    Documentation generated on Sat, 03 Jan 2009 21:12:11 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.1</a>
	      </div>
      </td></tr></table>
    </td>
  </tr>
</table>

</body>
</html>